import { Link, Outlet,connect } from 'umi';
import styles from './index.less';

const Layout=({dispatch, global})=>{
    return (
        <div className={styles.navs}>
            <ul>
                <li>
                    <Link to="/">Home</Link>
                </li>
                <li>
                    <Link to="/docs">Docs</Link>
                </li>
                <li>
                    <a href="https://github.com/umijs/umi">Github</a>
                    {global.num}
                </li>
            </ul>
            <Outlet />
        </div>
    );
}

export default connect(global=>global)(Layout)
